package org.class2table.core.template;

import org.class2table.core.dictionary.Constants;

public class JavaTemplate {

    public static final String CLASS_TEMPLATE =
            "@Table(tableName = \"%s\")\n"
            + "public class %s {\n\n"
            + "%s"
            + "}";

    public static final String PROPERTY_TEMPLATE
            = Constants.COMMON.tab + "private %s %s;";

    public static final String PROPERTY_COLUMN_ANNOTATION_TEMPLATE
            = Constants.COMMON.tab + "@Column(columnName = \"%s\", columnType = \"%s\", isNullable = %s, isSetDefault = %s, columnDefault = \"%s\", columnComment = \"%s\")";

    public static final String PROPERTY_PRIMARY_KEY_ANNOTATION_TEMPLATE
            = Constants.COMMON.tab + "@PrimaryKey(%s)";

}
